var REFINE = {};

REFINE.sendAsyncRequest = function(type,data){
	  $.ajax( {   
	      type : "GET",   
	      url : "./ajaxTest", 
	      data : data,  
	      dataType: "json",   
	      success : function(data) {
	          if(data.success){   
	              alert("异步！");       
	          }   
	          else{   
	              alert("设置失败！");   
	          }   
	      },   
	      error :function(){   
	          alert("网络连接出错！");   
	      }   
	  });   
}

REFINE.sendRequest = function(type,data){
	
	var response  ;
	  $.ajax( {
	      type : "GET",   
	      async:false,
	      url : "./ajaxTest", 
	      data : data,  
	      dataType: "json",   
	      success : function(data) {
	    	  response =  data;
	      },   
	      error :function(data){   
	    	  response =  data; 
	      }   
	  });   
	 return response;
}

